<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>个人中心</title>
		<link rel="stylesheet" type="text/css" href="css/header.css"/>
		<style>
			.personal_wrap {
				width: 1226px;
				margin: 30px auto 0;
				/*background-color: gainsboro;*/
			}
			.personal_option {
				width: 226px;
				text-align: center;
				/*background-color: coral;*/
				float: left;
			}
			.personal_option>p{
				color: white;
				font-size: 18px;
				background-color: #96d610;
				line-height: 36px;
			
			}
			.personal_option ul{
				margin-bottom: 80px;
			}
			.personal_option ul li{
				height: 60px;
				border-bottom: 1px solid gainsboro;
				cursor: pointer;
			}
			.personal_option ul li a{
				display: block;
				height: 50px;
				line-height: 50px;
				margin-top: 5px;
				color: black;
			}
			.personal_option ul li:hover a{
				font-size: 18px;
				border-left: 6px solid #96d610;
			}
			
			.hoverA{
				font-size: 18px;
				border-left: 6px solid #96d610;
			}
			
			.personal_item_wrap {
				width: 1000px;
				/*height: 500px;*/
				/*background-color: gray;*/
				float: left;
			}
			.personal_item {
				/*background-color: red;*/
				width: 925px;
				/*height: 500px;*/
				margin: 0 auto;
			}
			
			/*我要预约*/
			.personal_msg {
				border: 1px solid gainsboro;
				height: 150px;
				position: relative;
			}
			.personal_msg div{
				width: 75%;
				height: 110px;
				border-right: 1px solid gainsboro;
				position: relative;
				margin: 20px 0;
				float: left;
			}
			.personal_msg div>img{
				margin-left: 30px;
			}
			.personal_msg div h6{
				position: absolute;
				top: 20px;
				left: 160px;
				font-weight: normal;
				font-size: 18px;
			}
			.personal_msg div h6 img{
				/*vertical-align: middle;*/
				height: 18px;
			}
			.personal_msg div p{
				position: absolute;
				top: 50px;
				left: 160px;
			}
			.personal_msg div p span:nth-child(1),.personal_msg div p span:nth-child(2){
				padding-right: 50px;
			}
			.personal_msg div p span:nth-child(3),.personal_msg div p span:nth-child(4){
				color: red;
			}
			.personal_msg>p{
				padding: 10px 40px;
				background-color: #96D610;
				text-align: center;
				color: white;
				float: right;
				border-radius: 20px;
				margin: 55px 40px 0 0;
				cursor: pointer;
			}
			.my_appointment {
				margin: 50px 0 20px;
				font-size: 18px;
			}
			.my_appointment a{
				float: right;
				color: #5b9efd;
				text-decoration: underline;
			}
			.appointment_content{
				width: 100%;
				/*background-color: gainsboro;*/
				text-align: center;
				border: 1px solid gainsboro;
			}
			.appointment_content tr:nth-child(odd){
				background-color: #f0f5e6;
			}
			.appointment_content tr:first-child{
				background-color: #eeeeee;
			}
			.appointment_content tr td{
				height: 50px;
			}
			.appointment_content p{
				width: 75%;
				padding: 5px 0;
				margin: 0 auto;
				color: white;
				border-radius: 15px;
				cursor: pointer;
			}
			.lesson_1{
				background-color: #96D610;
				
			}
			.lesson_2{
				background-color: #d2d2d2;
			}
			.setMsg{
				width: 100%;
				height: 150px;
				resize: none;
			}
			.submitMsg {
				background-color: #96D610;
				float: right;
				padding: 5px 25px;
				color: white;
				border-radius: 15px;
				cursor: pointer;
			}
			/*修改预约*/
			.change table td p{
				padding: 5px 8px;
			}
			.change h5 {
				font-size: 18px;
				margin-bottom: 15px;
			}
			/*治疗师*/
			.therapeutist_list li{
				/*height: 250px;*/
				clear: both;
			}
			.therapeutist_img{
				background-color: #e2ebf0;
				float: left;
				border-radius: 5px;
				font-size: 0;
				margin-right: 20px;
				margin-bottom: 30px;
			}
			.therapeutist_list li div:first-child img{
				width: 200px;
			}
			.therapeutist_msg {
				float: left;
				width: 700px;
			}
			.therapeutist_msg img{
				width: 24px;
				vertical-align: middle;
				margin-right: 10px;
			}
			.therapeutist_msg h5{
				font-size: 18px;
				font-weight: bold;
				color: #96D610;
				margin-bottom: 10px;
			}
			.therapeutist_msg h6{
				font-size: 18px;
				font-weight: normal;
				margin-bottom: 10px;
			}
			.therapeutist_msg p:first-of-type {
				font-size: 18px;
				font-weight: normal;
				margin-bottom: 10px;
				color: #666666;
			}
			.brief img{
				float: left;
			}
			.brief span{
				display: inline-block;
				width: 666px;
				color: #666;
			}
			
			/*课程回顾*/
			.second_title{
				border-bottom: 1px solid gainsboro;
				margin-bottom: 30px;
				font-size: 16px;
				line-height: 32px;
				height: 36px;
				/*background-color: orange;*/
			}
			.second_title span{
				display: inline-block;
				width: 90px;
				text-align: center;
				color: #666;
				border-bottom: 5px solid transparent;
				cursor: pointer;
			}
			.second_title span:hover{
				border-bottom: 5px solid #96D610;
				font-size: 18px;
				/*font-weight: bold;*/
				color: black;
			}
			.lesson_list li {
				width: 250px;
				float: left;
				margin: 0px 0px 50px 40px;
				position: relative;
				border: 1px solid transparent;
				border-bottom: 1px solid gainsboro;
			}
			.lesson_list li:hover {
				border: 1px solid gainsboro;
				box-shadow: 0px 2px 5px gainsboro;
			}
			.lesson_list li:nth-child(4n){
				margin-right: 0px;
			}
			.lesson_list li .main_img{
				width: 100%;
			}
			.lesson_list li p{
				width: 90%;
				margin: 0 auto;
			}
			.lesson_list li p:first-of-type{
				margin: 10px auto 15px;
			}
			.lesson_list li .type1{
				background-color: #96d610;
				font-size: 14px;
				color: white;
				padding: 1px 25px;
				border-radius: 15px;
				float: right;
			}
			.lesson_list li .type2{
				background-color: #f79d95;
				font-size: 14px;
				color: white;
				padding: 1px 25px;
				border-radius: 15px;
				float: right;
			}
			
			.lesson_list li p:last-of-type{
				font-size: 14px;
				margin-bottom: 15px;
				color: #808080;
			}
			.lesson_list li p:last-of-type span {
				float: right;
			}
			.lesson_list li p:last-of-type span img{
				vertical-align: sub;
				cursor: pointer;
				margin-right: 5px;
			}
			.lesson_list li .icon_vip {
				position: absolute;
				top: 0;
				left: 0;
			}
			
			.assessment p{
				margin-bottom: 10px;
			}
			.assessment textarea {
				width: 400px;
				height: 80px;
				resize: none;
				margin-bottom: 30px;
			}
			.assessment input {
				width: 200px;
				height: 25px;
				margin-bottom: 30px;
			}
			.assessment p:last-child{
				font-size: 16px;
				background-color: #96D610;
				width: 95px;
				text-align: center;
				color: white;
				border-radius: 15px;
				line-height: 28px;
				cursor: pointer;
			}
			
			/*设备*/
			.product_items {
				/*float: left;*/
			}
			.product_items li {
				margin: 50px 0px 100px 50px;
				position: relative;
			}
			.product_items li img{
				width: 30%;
				border: 1px solid gainsboro;
			}
		
			.product_items li .product_items_content {
				width: 500px;
				float: right;
				margin-right: 50px;
				/*background-color: orange;*/
			}
			.product_items_content p:first-of-type {
				line-height: 36px;
			}
			/*.apply*/
			.apply span{
				display: inline-block;
			}
			.apply span:first-child{
				width: 70px;
				float: left;
			}
			.apply span:last-child{
				width: 420px;
			}
			.equipment_renew .product_items_content p:last-child{
				/*margin-top: 50px;*/
				position: absolute;
				bottom: 5px;
			
			}
			.equipment_renew .product_items_content p:last-child span:first-child{
				/*float: left;*/
				padding: 8px 40px;
				background-color: #96d610;
				color: white;
				border-radius: 20px;
				cursor: pointer;
				margin-right: 20px;
			}
			.equipment_renew .product_items_content p:last-child span:last-child{
				color: red;
			}
			
			.my_record h5 {
				font-size: 18px;
				margin-bottom: 25px;
			}
			.my_record table td p{
				width: 50%;
			}
		</style>
	</head>
	<body ng-app="myApp" ng-controller="myController">
		<div ng-include="'header.html'"></div>
		<div class="personal_wrap">
			<div class="personal_option">
				<p>我的预约</p>
				<ul class="order_list">
					<li><a href="javascript:void(0)">我要预约</a></li>
					<li><a ng-click="active=1" ng-class="{true:'hoverA'}[active==1]" href="#/reservation-record">预约记录</a></li>
					<li><a ng-click="active=2" ng-class="{true:'hoverA'}[active==2]" href="#/modify-appointment">修改预约</a></li>
				</ul>
				<p>关注中心</p>
				<ul>
					<li><a ng-click="active=3" ng-class="{true:'hoverA'}[active==3]" href="#/therapeutist">关注的治疗师</a></li>
				</ul>
				<p>资产中心</p>
				<ul>
					<li><a ng-click="active=4" ng-class="{true:'hoverA'}[active==4]" href="#/course-review">课程回顾</a></li>
					<li><a ng-click="active=5" ng-class="{true:'hoverA'}[active==5]" href="#/my-equipment">我的设备</a></li>
					<li><a ng-click="active=6" ng-class="{true:'hoverA'}[active==6]" href="#/other-consume">其他消费记录</a></li>
				</ul>
			</div>
			<div class="personal_item_wrap">
				<ul class="personal_item" ui-view>
					 
				</ul>
			</div>
		</div>
	</body>
	<script src="js/angular.min.js" type="text/javascript" charset="utf-8"></script>
	<!--<script src="http://apps.bdimg.com/libs/angular-route/1.3.13/angular-route.js"></script>-->
	<!--<script src="//cdn.bootcss.com/angular-ui-router/1.0.0-beta.3/angular-ui-router.js"></script>-->
	<script src="//cdn.bootcss.com/angular-ui-router/1.0.0-beta.3/angular-ui-router.min.js"></script>
	<script type="text/javascript">
	
//		 angular.module('myApp',['ngRoute'])
//          .config(['$routeProvider', function($routeProvider){
//              $routeProvider
//              .when('/',{templateUrl:'part1.html'})
//              .when('/modify-appointment',{templateUrl:'part2.html'})
//              .when('/therapeutist',{templateUrl:'part3.html'})
//              .when('/course-review',{templateUrl:'part4.html'})
//              .when('/my-equipment',{templateUrl:'part5.html'})
//              .when('/other-consume',{templateUrl:'part6.html'})
//              .otherwise({redirectTo:'/'});
//          }]);

var app = angular.module('myApp',["ui.router"]);
app.controller('myController', function ($scope, $state,$injector,$templateCache,$window) {
    console.log($state.router.urlRouter.location)
    
$scope.reloadPage = function(){window.location.reload();}
    var pageState=$state.router.urlRouter.location
   	$scope.active=1;
   	if(pageState=='/reservation-record'){
   		$scope.active=1;
   	}else if(pageState=='/modify-appointment'){
   		$scope.active=2;
   	}else if(pageState=='/therapeutist'){
   		$scope.active=3;
   	}else if(pageState=='/course-review'){
   		$scope.active=4;
   	}else if(pageState=='/my-equipment'){
   		$scope.active=5;
   	}else if(pageState=='/other-consume'){
   		$scope.active=6;
   	}
 })


app.config(function($stateProvider, $urlRouterProvider){
    $urlRouterProvider.otherwise('/reservation-record');

    $stateProvider
        .state('reservation-record',{
            url: '/reservation-record',
            templateUrl: 'part1.html'
        })
        .state('modify-appointment',{
            url: '/modify-appointment',
            templateUrl: 'part2.html'
        })
        .state('therapeutist',{
            url: '/therapeutist',
            templateUrl: 'part3.html'
        })
        .state('course-review',{
            url: '/course-review',
            templateUrl: 'part4.html'
        })
         .state('my-equipment',{
            url: '/my-equipment',
            templateUrl: 'part5.html'
        })
         .state('other-consume',{
            url: '/other-consume',
            templateUrl: 'part6.html'
        })
        
})
            
           
	</script>
</html>

